package cn.gson.springboot.model.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import cn.gson.springboot.model.pojos.FactoryYk;
//供应商dao
public interface FactoryYkDAO extends CrudRepository<FactoryYk, Integer>{
	//查询所有
	//public List<FactoryYk> findAll();
 
	//查询id
	@Query("select f from FactoryYk f where f.factoryId=?1")
	public FactoryYk findbyid(Integer factoryId);
}  
